package com.zhuo.project.hms.domain;

import com.zhuo.framework.aspectj.lang.annotation.Excel;
import com.zhuo.framework.web.domain.BaseEntity;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 诊所信息对象 zz_clinic
 * 
 * @author zhuo
 * @date 2020-03-20
 */
public class ZzClinic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 诊所编码 */
    @Excel(name = "诊所编码")
    private String clinicCode;

    /** 诊所名称 */
    @Excel(name = "诊所名称")
    private String clinicName;

    /** 诊所电话 */
    @Excel(name = "诊所电话")
    private String phone;

    /** 是否有效 1有效 2无效 */
    @Excel(name = "是否有效 1有效 2无效")
    private Integer isValid;

    /** 同步时间 */
    @Excel(name = "同步时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date synTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClinicCode(String clinicCode) 
    {
        this.clinicCode = clinicCode;
    }

    public String getClinicCode() 
    {
        return clinicCode;
    }
    public void setClinicName(String clinicName) 
    {
        this.clinicName = clinicName;
    }

    public String getClinicName() 
    {
        return clinicName;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIsValid(Integer isValid) 
    {
        this.isValid = isValid;
    }

    public Integer getIsValid() 
    {
        return isValid;
    }
    public void setSynTime(Date synTime) 
    {
        this.synTime = synTime;
    }

    public Date getSynTime() 
    {
        return synTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clinicCode", getClinicCode())
            .append("clinicName", getClinicName())
            .append("phone", getPhone())
            .append("isValid", getIsValid())
            .append("synTime", getSynTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
